//
//  MYGUserModel.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/3/11.
//

import HandyJSON

enum SexType: Int, HandyJSONEnum {
case boy = 1
case girl = 2
}
class MYGUserModel: HandyJSON {
    var id = 0
    var username = ""
    var mobile = ""
    var auth_key = ""
    var password_hash = ""
    var verification_token = ""
    var password_reset_token = ""
    var email = ""
    var type = 0
    var status = 0
    var created_at = 0
    var updated_at = 0
    var wx_openid = ""
    var unionid = ""
    var xcx_openid = ""
    var sessionKey = ""
    var nickname = ""
    var avatar = ""
    var login_method = ""
    var integral = 0
    var doctor = MYGUserDoctor()
    var im_id = ""
    
    required init() {
    }
}

class MYGUserDoctor: HandyJSON {
    var address = ""
    var avatar = ""
    var background = 0
    var birthday = ""
    var city = ""
    var commitPassword = 0
    var country = ""
    var countryCode = ""
    var county = 0
    var created_at = ""
    var department = ""
    var email = ""
    var en_address = ""
    var en_city = ""
    var en_county = ""
    var en_department = ""
    var en_email = ""
    var en_gender = ""
    var en_hospital = ""
    var en_level = ""
    var en_name = ""
    var en_province = ""
    var en_title = ""
    var enable = 0
    var gender = 0
    var hospital = ""
    var id = 0
    var idNumber = ""
    var identity = ""
    
    var im_user_id = ""
    var index = ""
    var is_verify = 0
    var last_login_at = ""
    var level = ""
    var modelType = 0
    var name = ""
    var new_index = ""
    var nickname = ""
    var phone = 0
    var phoneNumber = ""
    var pid = 0
    var province = 0
    var purePhoneNumber = ""
    var recommends = ""
    var record = ""
    var reg_id = ""
    var research_role_id = ""
    var status = 0
    var three_elements = 0
    var title = ""
    var type = 0
    var updated_at = ""
    var user_id = 0
    var zh_city = ""
    var zh_county = ""
    var zh_province = ""
    
    var card_images:[String] = []
    var professional:[String] = []
    var qualification:[String] = []
    
    required init() {
    }
}
